Commit 7db5db56 authored by Robert's avatar Robert 👽

FIX: Unassignable roles shown in role selection (closes #237)

parent 6e897126
Pipeline #130315 passed with stages
in 4 minutes and 27 seconds
......@@ -6,7 +6,7 @@ export default {
{ name: 'cntl.mgr.list', old: { is_own: true } }, // Accounts
{ name: 'cntl.wapi_auth.list', join: { 0: 'api_fkey_cntl_wapi_auth_mgr' } }, // Tokens
{ name: 'cntl.mgr2role.list', join: { 0: 'api_fkey_cntl_mgr2role_mgr' } }, // Mgr2Role
{ name: 'cntl.role.list', old: { is_role: true, sorting_params_list: ['position'] } } // Roles
{ name: 'cntl.role.list', old: { is_role: true, is_directly_assigned: true, sorting_params_list: ['position'] } } // Roles
]
return TransactionService.execute(config, ta)
},
......
......@@ -302,3 +302,18 @@ table.collapse.in {
to { opacity: 1; }
}
.barrel {
animation-name: spin;
animation-duration: 1s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes spin {
from {
transform:rotate(0deg);
}
to {
transform:rotate(360deg);
}
}
......@@ -87,6 +87,7 @@ export default {
show_search: false,
search_input: '',
search_has_focus: false,
bTimeout: null,
pages: [
{
name: 'DNSVS',
......@@ -348,6 +349,11 @@ export default {
})
}
} else {
if (this.search_input === 'do a barrel roll') {
document.body.classList.add('barrel')
if (this.bTimeout) clearTimeout(this.bTimeout)
this.bTimeout = setTimeout(() => { document.body.classList.remove('barrel') }, 1000)
}
this.last_search = this.search_input
this.search_res = []
this.descriminator = this.getSearchDiscriminator()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment