feat: dont generate xxx domains
This commit is contained in:
@@ -60,6 +60,13 @@ function checkAvailability() {
|
||||
}
|
||||
}
|
||||
|
||||
function removeExt() {
|
||||
if (domain.value) {
|
||||
props.factory.removeExt(domain.value.extension);
|
||||
newDomain();
|
||||
}
|
||||
}
|
||||
|
||||
function getTextClass() {
|
||||
if (!domain.value || domain.value.name.length < 15) {
|
||||
return "text-5xl";
|
||||
@@ -121,5 +128,14 @@ watch(i18n.locale, newDomain);
|
||||
>
|
||||
{{ $t("button.new_domain") }}
|
||||
</button>
|
||||
<br />
|
||||
<p v-if="domain && state === State.Ready">
|
||||
<small
|
||||
><a class="underline" href="#" @click.prevent="removeExt">{{
|
||||
$t("page_random.dont_suggest", { ext: `.${domain.extension}` })
|
||||
}}</a></small
|
||||
>
|
||||
</p>
|
||||
<p v-else> </p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user