Changeset View
Changeset View
Standalone View
Standalone View
src/resources/js/app.js
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | methods: { | ||||
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 * units) + '/month' + index | return this.price(cost * units) + '/month' + index | ||||
}, | }, | ||||
clickRecord(event) { | |||||
if (!/^(a|button|svg|path)$/i.test(event.target.nodeName)) { | |||||
$(event.target).closest('tr').find('a')[0].click() | |||||
} | |||||
}, | |||||
domainStatusClass(domain) { | domainStatusClass(domain) { | ||||
if (domain.isDeleted) { | if (domain.isDeleted) { | ||||
return 'text-muted' | return 'text-muted' | ||||
} | } | ||||
if (domain.isSuspended) { | if (domain.isSuspended) { | ||||
return 'text-warning' | return 'text-warning' | ||||
} | } | ||||
▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines |