mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
upgraded Ember and Bootstrap, merged changes
This commit is contained in:
parent
b4fd42da38
commit
5dd7d9c181
114 changed files with 9814 additions and 1361 deletions
|
@ -9,6 +9,7 @@
|
|||
//
|
||||
// https://documize.com
|
||||
|
||||
import $ from 'jquery';
|
||||
import { empty, and } from '@ember/object/computed';
|
||||
import Component from '@ember/component';
|
||||
import { isEmpty } from '@ember/utils';
|
||||
|
@ -16,7 +17,6 @@ import { get, set } from '@ember/object';
|
|||
import AuthProvider from '../../mixins/auth';
|
||||
|
||||
export default Component.extend(AuthProvider, {
|
||||
newUser: { firstname: "", lastname: "", email: "", active: true },
|
||||
firstnameEmpty: empty('newUser.firstname'),
|
||||
lastnameEmpty: empty('newUser.lastname'),
|
||||
emailEmpty: empty('newUser.email'),
|
||||
|
@ -24,6 +24,11 @@ export default Component.extend(AuthProvider, {
|
|||
hasLastnameEmptyError: and('lastnameEmpty', 'lastnameError'),
|
||||
hasEmailEmptyError: and('emailEmpty', 'emailError'),
|
||||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
this.newUser = { firstname: "", lastname: "", email: "", active: true };
|
||||
},
|
||||
|
||||
actions: {
|
||||
add() {
|
||||
if (isEmpty(this.get('newUser.firstname'))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue