kopia lustrzana https://codeberg.org/nmkj/audon
remove scheduling
rodzic
06ed20cd98
commit
e1bbda00c8
|
@ -117,11 +117,11 @@ export default {
|
||||||
watch: {
|
watch: {
|
||||||
searchQuery(val) {
|
searchQuery(val) {
|
||||||
this.isCandiadateLoading = false;
|
this.isCandiadateLoading = false;
|
||||||
|
this.searchError.enabled = false;
|
||||||
this.cohostSearch.cancel();
|
this.cohostSearch.cancel();
|
||||||
if (!val) return;
|
if (!val) return;
|
||||||
if (some(this.cohosts, { finger: val })) {
|
if (some(this.cohosts, { finger: val })) {
|
||||||
this.searchError.message = this.$t("errors.alreadyAdded");
|
this.searchError.message = this.$t("errors.alreadyAdded");
|
||||||
this.searchError.colour = "warning";
|
|
||||||
this.searchError.enabled = true;
|
this.searchError.enabled = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,12 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
async search(val) {
|
async search(val) {
|
||||||
const finger = val.split("@");
|
const finger = val.split("@");
|
||||||
if (finger.length !== 2) return;
|
if (finger.length < 2 || finger.length > 3) {
|
||||||
|
this.searchError.message = this.$t("errors.invalidAddress");
|
||||||
|
this.searchError.enabled = true;
|
||||||
|
this.isCandiadateLoading = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
const resp = await this.donStore.client.v1.accounts.search({
|
const resp = await this.donStore.client.v1.accounts.search({
|
||||||
q: val,
|
q: val,
|
||||||
|
@ -151,7 +156,6 @@ export default {
|
||||||
this.searchError.enabled = false;
|
this.searchError.enabled = false;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.searchError.message = this.$t("errors.notFound", { value: val });
|
this.searchError.message = this.$t("errors.notFound", { value: val });
|
||||||
this.searchError.colour = "error";
|
|
||||||
this.searchError.enabled = true;
|
this.searchError.enabled = true;
|
||||||
} finally {
|
} finally {
|
||||||
this.isCandiadateLoading = false;
|
this.isCandiadateLoading = false;
|
||||||
|
@ -371,13 +375,6 @@ export default {
|
||||||
</v-text-field>
|
</v-text-field>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
<v-text-field
|
|
||||||
type="datetime-local"
|
|
||||||
v-model="scheduledAt"
|
|
||||||
:label="$t('form.schedule')"
|
|
||||||
disabled
|
|
||||||
:messages="[$t('comingFuture')]"
|
|
||||||
></v-text-field>
|
|
||||||
<v-checkbox
|
<v-checkbox
|
||||||
v-model="advertise"
|
v-model="advertise"
|
||||||
:disabled="relationship !== 'everyone'"
|
:disabled="relationship !== 'everyone'"
|
||||||
|
|
Ładowanie…
Reference in New Issue