2019-04-23 04:46:17 +09:00
|
|
|
<template>
|
|
|
|
<div>
|
2019-05-22 12:35:33 +09:00
|
|
|
<form @submit.prevent="addTL">
|
|
|
|
<BaseInputText placeholder="e.g:mstdn.jp" v-model="instance"/>
|
|
|
|
<BaseButton
|
|
|
|
type="submit"
|
|
|
|
class="primary fill"
|
|
|
|
style="--font-size:.8em;"
|
|
|
|
:disabled="!hasDomain"
|
|
|
|
>Add Column</BaseButton>
|
|
|
|
</form>
|
2019-04-23 04:46:17 +09:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2019-04-25 00:52:40 +09:00
|
|
|
import { ipcRenderer } from "electron"
|
|
|
|
import { Component, Vue } from "vue-property-decorator"
|
2019-04-23 04:46:17 +09:00
|
|
|
|
2019-05-22 12:35:33 +09:00
|
|
|
@Component
|
2019-04-27 06:33:15 +09:00
|
|
|
export default class PublicTimeline extends Vue {
|
2019-05-22 12:35:33 +09:00
|
|
|
public instance: string = ""
|
2019-04-24 17:15:42 +09:00
|
|
|
|
2019-04-24 03:40:04 +09:00
|
|
|
public get hasDomain() {
|
2019-04-25 00:52:40 +09:00
|
|
|
return this.instance != ""
|
2019-04-24 03:40:04 +09:00
|
|
|
}
|
2019-04-23 23:42:07 +09:00
|
|
|
|
|
|
|
public addTL() {
|
2019-05-22 12:35:33 +09:00
|
|
|
ipcRenderer.send("add-timeline", this.instance, 'no-auth')
|
2019-04-24 17:31:18 +09:00
|
|
|
|
2019-04-25 00:52:40 +09:00
|
|
|
this.instance = ""
|
2019-04-24 01:07:20 +09:00
|
|
|
}
|
2019-04-23 04:46:17 +09:00
|
|
|
}
|
2019-04-27 03:10:35 +09:00
|
|
|
</script>
|
2019-04-23 04:46:17 +09:00
|
|
|
|
|
|
|
<style scoped lang="postcss">
|
|
|
|
</style>
|