mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Merge pull request #5749 from nextcloud/ldap-primary-buttons
LDAP Wizard: primary-style buttons
This commit is contained in:
commit
a6d8948937
4 changed files with 13 additions and 1 deletions
|
|
@ -214,6 +214,7 @@ OCA = OCA || {};
|
|||
onConfigSwitch: function(view, configuration) {
|
||||
this.baseDNTestTriggered = false;
|
||||
view.disableElement(view.managedItems.ldap_port.$relatedElements);
|
||||
view.managedItems.ldap_dn.$saveButton.removeClass('primary');
|
||||
view.onConfigLoaded(view, configuration);
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -359,6 +359,10 @@ OCA = OCA || {};
|
|||
item.$saveButton.click(function(event) {
|
||||
event.preventDefault();
|
||||
view._requestSave(item.$element);
|
||||
item.$saveButton.removeClass('primary');
|
||||
});
|
||||
item.$element.change(function () {
|
||||
item.$saveButton.addClass('primary');
|
||||
});
|
||||
})(this.managedItems[id]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
type="button">
|
||||
<?php p($l->t('Back'));?>
|
||||
</button>
|
||||
<button class="ldap_action_continue" name="ldap_action_continue" type="button">
|
||||
<button class="ldap_action_continue primary" name="ldap_action_continue" type="button">
|
||||
<?php p($l->t('Continue'));?>
|
||||
</button>
|
||||
<a href="<?php p(link_to_docs('admin-ldap')); ?>"
|
||||
|
|
|
|||
|
|
@ -193,3 +193,10 @@
|
|||
color: $color-primary-element;
|
||||
}
|
||||
}
|
||||
|
||||
.ui-button.primary {
|
||||
background-color: $color-primary;
|
||||
color: $color-primary-text;
|
||||
border: 1px solid $color-primary-text;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue