2018-02-28 00:11:28 +09:00
|
|
|
<template>
|
2018-02-28 05:43:14 +09:00
|
|
|
<mk-ui>
|
2018-02-28 00:11:28 +09:00
|
|
|
<p v-if="fetching">読み込み中</p>
|
2018-02-28 05:43:14 +09:00
|
|
|
<b-card v-if="!fetching" :header="app.name">
|
|
|
|
<b-form-group label="App Secret">
|
|
|
|
<b-input :value="app.secret" readonly/>
|
|
|
|
</b-form-group>
|
|
|
|
</b-card>
|
|
|
|
</mk-ui>
|
2018-02-28 00:11:28 +09:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
export default Vue.extend({
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
fetching: true,
|
|
|
|
app: null
|
|
|
|
};
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
$route: 'fetch'
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.fetch();
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
fetch() {
|
|
|
|
this.fetching = true;
|
|
|
|
(this as any).api('app/show', {
|
|
|
|
app_id: this.$route.params.id
|
|
|
|
}).then(app => {
|
|
|
|
this.app = app;
|
|
|
|
this.fetching = false;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|