feat: show protected warning after protecting a note without protections

This commit is contained in:
Baptiste Grob
2021-03-22 18:32:31 +01:00
parent bf6cfa398e
commit 9f5c640bcd
2 changed files with 11 additions and 15 deletions

View File

@@ -1,11 +1,11 @@
#editor-column.section.editor.sn-component(aria-label='Note')
protected-note-panel.h-full.flex.justify-center.items-center(
ng-if='self.note.protected && !self.state.showEditor'
ng-if='self.state.showProtectedWarning'
app-state='self.appState'
on-view-note='self.dismissProtectedWarning()'
)
.flex-grow.flex.flex-col(
ng-if='self.state.showEditor'
ng-if='!self.state.showProtectedWarning'
)
.sn-component
.sk-app-bar.no-edges(