summaryrefslogtreecommitdiff
path: root/src/client/app/admin/views/users.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/admin/views/users.vue')
-rw-r--r--src/client/app/admin/views/users.vue18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/client/app/admin/views/users.vue b/src/client/app/admin/views/users.vue
index ff485cec86..0f46b564a9 100644
--- a/src/client/app/admin/views/users.vue
+++ b/src/client/app/admin/views/users.vue
@@ -165,7 +165,7 @@ export default Vue.extend({
/** 処理対象ユーザーの情報を更新する */
async refreshUser() {
- this.$root.api('admin/show-user', { userId: this.user._id }).then(info => {
+ this.$root.api('admin/show-user', { userId: this.user.id }).then(info => {
this.user = info;
});
},
@@ -173,7 +173,7 @@ export default Vue.extend({
async resetPassword() {
if (!await this.getConfirmed(this.$t('reset-password-confirm'))) return;
- this.$root.api('admin/reset-password', { userId: this.user._id }).then(res => {
+ this.$root.api('admin/reset-password', { userId: this.user.id }).then(res => {
this.$root.dialog({
type: 'success',
text: this.$t('password-updated', { password: res.password })
@@ -187,7 +187,7 @@ export default Vue.extend({
this.verifying = true;
const process = async () => {
- await this.$root.api('admin/verify-user', { userId: this.user._id });
+ await this.$root.api('admin/verify-user', { userId: this.user.id });
this.$root.dialog({
type: 'success',
text: this.$t('verified')
@@ -212,7 +212,7 @@ export default Vue.extend({
this.unverifying = true;
const process = async () => {
- await this.$root.api('admin/unverify-user', { userId: this.user._id });
+ await this.$root.api('admin/unverify-user', { userId: this.user.id });
this.$root.dialog({
type: 'success',
text: this.$t('unverified')
@@ -233,7 +233,7 @@ export default Vue.extend({
async silenceUser() {
const process = async () => {
- await this.$root.api('admin/silence-user', { userId: this.user._id });
+ await this.$root.api('admin/silence-user', { userId: this.user.id });
this.$root.dialog({
type: 'success',
splash: true
@@ -252,7 +252,7 @@ export default Vue.extend({
async unsilenceUser() {
const process = async () => {
- await this.$root.api('admin/unsilence-user', { userId: this.user._id });
+ await this.$root.api('admin/unsilence-user', { userId: this.user.id });
this.$root.dialog({
type: 'success',
splash: true
@@ -275,7 +275,7 @@ export default Vue.extend({
this.suspending = true;
const process = async () => {
- await this.$root.api('admin/suspend-user', { userId: this.user._id });
+ await this.$root.api('admin/suspend-user', { userId: this.user.id });
this.$root.dialog({
type: 'success',
text: this.$t('suspended')
@@ -300,7 +300,7 @@ export default Vue.extend({
this.unsuspending = true;
const process = async () => {
- await this.$root.api('admin/unsuspend-user', { userId: this.user._id });
+ await this.$root.api('admin/unsuspend-user', { userId: this.user.id });
this.$root.dialog({
type: 'success',
text: this.$t('unsuspended')
@@ -320,7 +320,7 @@ export default Vue.extend({
},
async updateRemoteUser() {
- this.$root.api('admin/update-remote-user', { userId: this.user._id }).then(res => {
+ this.$root.api('admin/update-remote-user', { userId: this.user.id }).then(res => {
this.$root.dialog({
type: 'success',
text: this.$t('remote-user-updated')