mirror of https://github.com/keeweb/keeweb
close question
parent
cf66e65f74
commit
0f77eca492
1
TODO.md
1
TODO.md
|
@ -9,6 +9,7 @@
|
|||
- [ ] move groups/entries
|
||||
- [ ] help/tips
|
||||
- [ ] switch view
|
||||
- [ ] lock without closing
|
||||
- [ ] merge
|
||||
- [ ] generation templates
|
||||
- [ ] advanced search
|
||||
|
|
|
@ -195,7 +195,15 @@ var AppView = Backbone.View.extend({
|
|||
},
|
||||
|
||||
lockWorkspace: function() {
|
||||
this.model.closeAllFiles();
|
||||
if (this.model.files.hasUnsavedFiles()) {
|
||||
Alerts.yesno({
|
||||
header: 'Unsaved changes',
|
||||
body: 'You have unsaved changes that will be lost. Continue?',
|
||||
success: this.model.closeAllFiles.bind(this.model)
|
||||
});
|
||||
} else {
|
||||
this.model.closeAllFiles();
|
||||
}
|
||||
},
|
||||
|
||||
saveAll: function() {
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
<div class="open__file-password">
|
||||
<div class="open__file-title">
|
||||
<% if (name) { %>
|
||||
<a class="open__file-link-name <%= opening ? 'disabled' : '' %> muted-color"><%- name %></a> / <a
|
||||
class="open__file-link-name muted-color" <%= opening ? 'disabled' : '' %>>Another</a>
|
||||
<a class="open__file-link-name muted-color" <%= opening ? 'disabled' : '' %>>Open another</a>
|
||||
<% } else { %>
|
||||
<a class="open__file-link-open muted-color" <%= opening ? 'disabled' : '' %>>Open</a> / <a
|
||||
class="open__file-link-new muted-color" <%= opening ? 'disabled' : '' %>>New</a> / <a
|
||||
|
|
Loading…
Reference in New Issue