2018-03-05 03:11:07 -06:00
|
|
|
<template>
|
|
|
|
<div class="root">
|
2018-11-08 12:44:35 -06:00
|
|
|
<ui-info v-if="!fetching && apps.length == 0">{{ $t('no-apps') }}</ui-info>
|
2018-03-05 03:11:07 -06:00
|
|
|
<div class="apps" v-if="apps.length != 0">
|
|
|
|
<div v-for="app in apps">
|
|
|
|
<p><b>{{ app.name }}</b></p>
|
|
|
|
<p>{{ app.description }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2019-02-28 19:42:28 -06:00
|
|
|
import i18n from '../../../../i18n';
|
2018-03-05 03:11:07 -06:00
|
|
|
export default Vue.extend({
|
2018-11-08 12:44:35 -06:00
|
|
|
i18n: i18n('desktop/views/components/settings.apps.vue'),
|
2018-03-05 03:11:07 -06:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
fetching: true,
|
|
|
|
apps: []
|
|
|
|
};
|
|
|
|
},
|
|
|
|
mounted() {
|
2018-11-08 17:13:34 -06:00
|
|
|
this.$root.api('i/authorized_apps').then(apps => {
|
2018-03-05 03:11:07 -06:00
|
|
|
this.apps = apps;
|
|
|
|
this.fetching = false;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
.root
|
|
|
|
> .apps
|
|
|
|
> div
|
|
|
|
padding 16px 0 0 0
|
|
|
|
border-bottom solid 1px #eee
|
|
|
|
</style>
|