Changeset View
Changeset View
Standalone View
Standalone View
src/resources/js/app.js
Show First 20 Lines • Show All 264 Lines • ▼ Show 20 Lines | methods: { | ||||
priceLabel(cost, discount) { | priceLabel(cost, discount) { | ||||
let index = '' | let index = '' | ||||
if (discount) { | if (discount) { | ||||
cost = Math.floor(cost * ((100 - discount) / 100)) | cost = Math.floor(cost * ((100 - discount) / 100)) | ||||
index = '\u00B9' | index = '\u00B9' | ||||
} | } | ||||
return this.price(cost) + '/month' + index | return this.price(cost) + '/' + this.$t('wallet.month') + index | ||||
}, | }, | ||||
clickRecord(event) { | clickRecord(event) { | ||||
if (!/^(a|button|svg|path)$/i.test(event.target.nodeName)) { | if (!/^(a|button|svg|path)$/i.test(event.target.nodeName)) { | ||||
$(event.target).closest('tr').find('a').trigger('click') | $(event.target).closest('tr').find('a').trigger('click') | ||||
} | } | ||||
}, | }, | ||||
domainStatusClass(domain) { | domainStatusClass(domain) { | ||||
if (domain.isDeleted) { | if (domain.isDeleted) { | ||||
▲ Show 20 Lines • Show All 242 Lines • Show Last 20 Lines |