mirror of https://github.com/keeweb/keeweb
entry modification indication
parent
0f77eca492
commit
6044776d9d
|
@ -27,7 +27,7 @@ var FooterView = Backbone.View.extend({
|
|||
KeyHandler.onKey(Keys.DOM_VK_S, this.saveAll, this, KeyHandler.SHORTCUT_ACTION);
|
||||
KeyHandler.onKey(Keys.DOM_VK_COMMA, this.toggleSettings, this, KeyHandler.SHORTCUT_ACTION);
|
||||
|
||||
this.listenTo(this.model.files, 'update reset', this.render);
|
||||
this.listenTo(this.model.files, 'update reset change', this.render);
|
||||
},
|
||||
|
||||
render: function () {
|
||||
|
|
|
@ -21,6 +21,13 @@
|
|||
&--expanded {
|
||||
@include flex(1);
|
||||
}
|
||||
|
||||
&-mod-sign {
|
||||
font-size: 6px;
|
||||
vertical-align: top;
|
||||
margin-left: $base-padding-h;
|
||||
@include th { color: action-color(); }
|
||||
}
|
||||
}
|
||||
|
||||
&__btn {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<% files.forEach(function(file) { %>
|
||||
<div class="footer__db footer__db-item <%= file.get('open') ? '' : 'footer__db--dimmed' %>" data-file-id="<%= file.cid %>">
|
||||
<i class="fa fa-<%= file.get('open') ? 'unlock' : 'lock' %>"></i> <%- file.get('name') %>
|
||||
<% if (file.get('modified')) { %><i class="fa fa-circle footer__db-mod-sign"></i><% } %>
|
||||
</div>
|
||||
<% }); %>
|
||||
<div class="footer__db footer__db--dimmed footer__db--expanded footer__db-open"><i class="fa fa-plus"></i> Open / New</div>
|
||||
|
|
Loading…
Reference in New Issue