if(result&&result.statusCode!==201)returnonError('Something went wrong');
if(error)returnonError(error);
this.refresh();
done();
});
}else{
done();
});
}else{
done();
}
}
}
}).then(action=>{});// handle the promise rejection on dismiss
},
revokeKeyAsk(name){
this.$msgbox({
title:'Really revoke the key for '+name+'?',
message:'<div role="alert" class="el-alert el-alert--error"><i class="el-alert__icon el-icon-warning"></i><div class="el-alert__content"><span class="el-alert__title">You won\'t be able to undo this action!</span></div></div><br/><p>To confirm, please enter the device name <b>'+name+'</b></p>',
if(result&&result.statusCode!==200)returnonError('Something went wrong');
if(error)returnonError(error);
this.refresh();
}).then(action=>{});// handle the promise rejection on dismiss
},
revokeKeyAsk(name){
this.$msgbox({
title:'Really revoke the key for '+name+'?',
message:'<div role="alert" class="el-alert el-alert--error"><i class="el-alert__icon el-icon-warning"></i><div class="el-alert__content"><span class="el-alert__title">You won\'t be able to undo this action!</span></div></div><br/><p>To confirm, please enter the device name <b>'+name+'</b></p>',