added 260907 version of worker toolkit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import Ember from 'ember';
|
||||
|
||||
const {
|
||||
get,
|
||||
set,
|
||||
Component
|
||||
} = Ember;
|
||||
|
||||
export default Component.extend({
|
||||
showReminder: false,
|
||||
|
||||
actions: {
|
||||
saveProfile() {
|
||||
set(this, 'isLoading', true);
|
||||
|
||||
get(this, 'model').save().then(profile => {
|
||||
this.sendAction('onProfileSaved', profile);
|
||||
}).finally(() => {
|
||||
set(this, 'isLoading', false);
|
||||
});
|
||||
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user