2018-02-27 07:11:28 -08:00
|
|
|
<template>
|
2018-02-27 12:43:14 -08:00
|
|
|
<mk-ui>
|
2018-08-06 13:00:12 -07:00
|
|
|
<p v-if="fetching">%i18n:common.loading%</p>
|
2018-02-27 12:43:14 -08: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-27 07:11:28 -08: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', {
|
2018-03-28 22:48:47 -07:00
|
|
|
appId: this.$route.params.id
|
2018-02-27 07:11:28 -08:00
|
|
|
}).then(app => {
|
|
|
|
this.app = app;
|
|
|
|
this.fetching = false;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|