This commit is contained in:
syuilo
2017-02-20 16:09:46 +09:00
parent 4c43573c1e
commit c05abf4da7
80 changed files with 400 additions and 366 deletions

View File

@ -203,9 +203,9 @@
this.nid-state = 'wait'
this.update();
this.api 'app/name_id/available' do
this.api('app/name_id/available', {
name_id: nid
.then (result) =>
}).then((result) => {
if result.available
this.nid-state = 'ok'
else
@ -225,9 +225,9 @@
this.refs.permission.query-selector-all 'input' .forEach (el) =>
if el.checked then permission.push el.value
locker = document.body.appendChild document.createElement 'mk-locker'
this.api 'app/create' do
locker = document.body.appendChild(document.createElement('mk-locker'));
this.api('app/create', {
name: name
name_id: nid
description: description

View File

@ -20,9 +20,9 @@
this.fetching = true
this.on('mount', () => {
this.api 'app/show' do
this.api('app/show', {
app_id: this.opts.app
.then (app) =>
}).then((app) => {
this.app = app
this.fetching = false
this.update();

View File

@ -22,7 +22,7 @@
this.on('mount', () => {
this.api 'my/apps'
.then (apps) =>
}).then((apps) => {
this.fetching = false
this.apps = apps
this.update();