Refactors most controllers and directives into classes for more organized and maintainable code
This commit is contained in:
@@ -1,39 +1,51 @@
|
||||
.sk-modal-background(ng-click='cancel()')
|
||||
.sk-modal-background(ng-click='ctrl.cancel()')
|
||||
#privileges-modal.sk-modal-content
|
||||
.sn-component
|
||||
.sk-panel
|
||||
.sk-panel-header
|
||||
.sk-panel-header-title Manage Privileges
|
||||
a.sk-a.close-button.info(ng-click='cancel()') Done
|
||||
a.sk-a.close-button.info(ng-click='ctrl.cancel()') Done
|
||||
.sk-panel-content
|
||||
.sk-panel-section
|
||||
table.sk-table
|
||||
thead
|
||||
tr
|
||||
th
|
||||
th(ng-repeat='cred in availableCredentials')
|
||||
th(ng-repeat='cred in ctrl.availableCredentials')
|
||||
.priv-header
|
||||
strong {{credentialDisplayInfo[cred].label}}
|
||||
.sk-p.font-small(ng-show='!credentialDisplayInfo[cred].availability', style='margin-top: 2px') Not Configured
|
||||
strong {{ctrl.credentialDisplayInfo[cred].label}}
|
||||
.sk-p.font-small(
|
||||
ng-show='!ctrl.credentialDisplayInfo[cred].availability',
|
||||
style='margin-top: 2px'
|
||||
) Not Configured
|
||||
tbody
|
||||
tr(ng-repeat='action in availableActions')
|
||||
tr(ng-repeat='action in ctrl.availableActions')
|
||||
td
|
||||
.sk-p {{displayInfoForAction(action)}}
|
||||
th(ng-repeat='credential in availableCredentials')
|
||||
input(ng-checked='isCredentialRequiredForAction(action, credential)', ng-click='checkboxValueChanged(action, credential)', ng-disabled='!credentialDisplayInfo[credential].availability', type='checkbox')
|
||||
.sk-panel-section(ng-if='sessionExpirey && !sessionExpired')
|
||||
.sk-p.sk-panel-row You will not be asked to authenticate until {{sessionExpirey}}.
|
||||
a.sk-a.sk-panel-row.info(ng-click='clearSession()') Clear Session
|
||||
.sk-p {{ctrl.displayInfoForAction(action)}}
|
||||
th(ng-repeat='credential in ctrl.availableCredentials')
|
||||
input(
|
||||
ng-checked='ctrl.isCredentialRequiredForAction(action, credential)',
|
||||
ng-click='ctrl.checkboxValueChanged(action, credential)',
|
||||
ng-disabled='!ctrl.credentialDisplayInfo[credential].availability',
|
||||
type='checkbox'
|
||||
)
|
||||
.sk-panel-section(ng-if='ctrl.sessionExpirey && !ctrl.sessionExpired')
|
||||
.sk-p.sk-panel-row
|
||||
| You will not be asked to authenticate until {{ctrl.sessionExpirey}}.
|
||||
a.sk-a.sk-panel-row.info(ng-click='ctrl.clearSession()') Clear Session
|
||||
.sk-panel-footer
|
||||
.sk-h2.sk-bold About Privileges
|
||||
.sk-panel-section.no-bottom-pad
|
||||
.sk-panel-row
|
||||
.text-content
|
||||
.sk-p
|
||||
| Privileges represent interface level authentication for accessing certain items and features.
|
||||
| Note that when your application is unlocked, your data exists in temporary memory in an unencrypted state.
|
||||
| Privileges are meant to protect against unwanted access in the event of an unlocked application, but do not affect data encryption state.
|
||||
| Privileges represent interface level authentication for accessing
|
||||
| certain items and features. Note that when your application is unlocked,
|
||||
| your data exists in temporary memory in an unencrypted state.
|
||||
| Privileges are meant to protect against unwanted access in the event of
|
||||
| an unlocked application, but do not affect data encryption state.
|
||||
p.sk-p
|
||||
| Privileges sync across your other devices; however, note that if you require
|
||||
| a "Local Passcode" privilege, and another device does not have a local passcode set up, the local passcode
|
||||
| requirement will be ignored on that device.
|
||||
| Privileges sync across your other devices; however, note that if you
|
||||
| require a "Local Passcode" privilege, and another device does not have
|
||||
| a local passcode set up, the local passcode requirement will be ignored
|
||||
| on that device.
|
||||
|
||||
Reference in New Issue
Block a user