Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Admin/User.vue
Show First 20 Lines • Show All 211 Lines • ▼ Show 20 Lines | <div class="container"> | ||||
<tr> | <tr> | ||||
<th scope="col">{{ $t('user.subscription') }}</th> | <th scope="col">{{ $t('user.subscription') }}</th> | ||||
<th scope="col">{{ $t('user.price') }}</th> | <th scope="col">{{ $t('user.price') }}</th> | ||||
</tr> | </tr> | ||||
</thead> | </thead> | ||||
<tbody> | <tbody> | ||||
<tr v-for="(sku, sku_id) in skus" :id="'sku' + sku.id" :key="sku_id"> | <tr v-for="(sku, sku_id) in skus" :id="'sku' + sku.id" :key="sku_id"> | ||||
<td>{{ sku.name }}</td> | <td>{{ sku.name }}</td> | ||||
<td>{{ sku.price }}</td> | <td class="price">{{ sku.price }}</td> | ||||
</tr> | </tr> | ||||
</tbody> | </tbody> | ||||
<tfoot class="table-fake-body"> | <tfoot class="table-fake-body"> | ||||
<tr> | <tr> | ||||
<td colspan="2">{{ $t('user.subscriptions-none') }}</td> | <td colspan="2">{{ $t('user.subscriptions-none') }}</td> | ||||
</tr> | </tr> | ||||
</tfoot> | </tfoot> | ||||
</table> | </table> | ||||
▲ Show 20 Lines • Show All 372 Lines • ▼ Show 20 Lines | export default { | ||||
} | } | ||||
if (sku.range) { | if (sku.range) { | ||||
item.name += ' ' + userSku.count + ' ' + sku.range.unit | item.name += ' ' + userSku.count + ' ' + sku.range.unit | ||||
} | } | ||||
this.skus.push(item) | this.skus.push(item) | ||||
if (sku.handler == 'auth2f') { | if (sku.handler == 'Auth2F') { | ||||
this.has2FA = true | this.has2FA = true | ||||
this.sku2FA = sku.id | this.sku2FA = sku.id | ||||
} else if (sku.handler == 'beta') { | } else if (sku.handler == 'Beta') { | ||||
this.hasBeta = true | this.hasBeta = true | ||||
} | } | ||||
} | } | ||||
}) | }) | ||||
}) | }) | ||||
// Fetch users | // Fetch users | ||||
// TODO: Multiple wallets | // TODO: Multiple wallets | ||||
▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines |