Commit c152d514 authored by Lukas Eipert's avatar Lukas Eipert

Run prettier on 30 files: 2 of 8

Mandatory not to break master. Automatically created with prettier.
parent 26b68c70
...@@ -46,7 +46,7 @@ export default class CreateLabelDropdown { ...@@ -46,7 +46,7 @@ export default class CreateLabelDropdown {
addBinding() { addBinding() {
const self = this; const self = this;
this.$colorSuggestions.on('click', function(e) { this.$colorSuggestions.on('click', function (e) {
const $this = $(this); const $this = $(this);
self.addColorValue(e, $this); self.addColorValue(e, $this);
}); });
...@@ -72,10 +72,7 @@ export default class CreateLabelDropdown { ...@@ -72,10 +72,7 @@ export default class CreateLabelDropdown {
e.stopPropagation(); e.stopPropagation();
this.$newColorField.val($this.data('color')).trigger('change'); this.$newColorField.val($this.data('color')).trigger('change');
this.$colorPreview this.$colorPreview.css('background-color', $this.data('color')).parent().addClass('is-active');
.css('background-color', $this.data('color'))
.parent()
.addClass('is-active');
} }
enableLabelCreateButton() { enableLabelCreateButton() {
...@@ -94,10 +91,7 @@ export default class CreateLabelDropdown { ...@@ -94,10 +91,7 @@ export default class CreateLabelDropdown {
this.$addList.prop('checked', this.addListDefault); this.$addList.prop('checked', this.addListDefault);
this.$colorPreview this.$colorPreview.css('background-color', '').parent().removeClass('is-active');
.css('background-color', '')
.parent()
.removeClass('is-active');
} }
saveLabel(e) { saveLabel(e) {
......
...@@ -30,8 +30,6 @@ export default { ...@@ -30,8 +30,6 @@ export default {
{{ time.seconds }} <span> {{ s__('Time|s') }} </span> {{ time.seconds }} <span> {{ s__('Time|s') }} </span>
</template> </template>
</template> </template>
<template v-else> <template v-else> -- </template>
--
</template>
</span> </span>
</template> </template>
...@@ -123,10 +123,7 @@ export class GitLabDropdown { ...@@ -123,10 +123,7 @@ export class GitLabDropdown {
if ($(this.el).is('input')) { if ($(this.el).is('input')) {
currentIndex = -1; currentIndex = -1;
} else { } else {
$(selector, this.dropdown) $(selector, this.dropdown).first().find('a').addClass('is-focused');
.first()
.find('a')
.addClass('is-focused');
currentIndex = 0; currentIndex = 0;
} }
} }
...@@ -493,10 +490,7 @@ export class GitLabDropdown { ...@@ -493,10 +490,7 @@ export class GitLabDropdown {
if (!this.options.multiSelect || el.hasClass('dropdown-clear-active')) { if (!this.options.multiSelect || el.hasClass('dropdown-clear-active')) {
this.dropdown.find(`.${ACTIVE_CLASS}`).removeClass(ACTIVE_CLASS); this.dropdown.find(`.${ACTIVE_CLASS}`).removeClass(ACTIVE_CLASS);
if (!isInput) { if (!isInput) {
this.dropdown this.dropdown.parent().find(`input[name='${fieldName}']`).remove();
.parent()
.find(`input[name='${fieldName}']`)
.remove();
} }
} }
if (field && field.length && value == null) { if (field && field.length && value == null) {
...@@ -536,10 +530,7 @@ export class GitLabDropdown { ...@@ -536,10 +530,7 @@ export class GitLabDropdown {
$(`input[name="${fieldName}"]`).remove(); $(`input[name="${fieldName}"]`).remove();
} }
const $input = $('<input>') const $input = $('<input>').attr('type', 'hidden').attr('name', fieldName).val(value);
.attr('type', 'hidden')
.attr('name', fieldName)
.val(value);
if (this.options.inputId != null) { if (this.options.inputId != null) {
$input.attr('id', this.options.inputId); $input.attr('id', this.options.inputId);
} }
...@@ -678,9 +669,7 @@ export class GitLabDropdown { ...@@ -678,9 +669,7 @@ export class GitLabDropdown {
toggleText = this.options.updateLabel; toggleText = this.options.updateLabel;
} }
return $(this.el) return $(this.el).find('.dropdown-toggle-text').text(toggleText);
.find('.dropdown-toggle-text')
.text(toggleText);
} }
// eslint-disable-next-line class-methods-use-this // eslint-disable-next-line class-methods-use-this
......
...@@ -22,10 +22,7 @@ export class GitLabDropdownFilter { ...@@ -22,10 +22,7 @@ export class GitLabDropdownFilter {
// Clear click // Clear click
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
return this.input return this.input.val('').trigger('input').focus();
.val('')
.trigger('input')
.focus();
}); });
// Key events // Key events
timeout = ''; timeout = '';
...@@ -113,7 +110,7 @@ export class GitLabDropdownFilter { ...@@ -113,7 +110,7 @@ export class GitLabDropdownFilter {
const elements = this.options.elements(); const elements = this.options.elements();
if (searchText) { if (searchText) {
// eslint-disable-next-line func-names // eslint-disable-next-line func-names
elements.each(function() { elements.each(function () {
const $el = $(this); const $el = $(this);
const matches = fuzzaldrinPlus.match($el.text().trim(), searchText); const matches = fuzzaldrinPlus.match($el.text().trim(), searchText);
if (!$el.is('.dropdown-header')) { if (!$el.is('.dropdown-header')) {
......
...@@ -9,10 +9,7 @@ export class GitLabDropdownInput { ...@@ -9,10 +9,7 @@ export class GitLabDropdownInput {
// Clear click // Clear click
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
return this.input return this.input.val('').trigger('input').focus();
.val('')
.trigger('input')
.focus();
}); });
this.input this.input
...@@ -31,10 +28,7 @@ export class GitLabDropdownInput { ...@@ -31,10 +28,7 @@ export class GitLabDropdownInput {
.toLowerCase() // replace non alphanumeric .toLowerCase() // replace non alphanumeric
.replace(/(-)\1+/g, '-'); // replace repeated dashes .replace(/(-)\1+/g, '-'); // replace repeated dashes
this.cb(this.options.fieldName, val, {}, true); this.cb(this.options.fieldName, val, {}, true);
this.input this.input.closest('.dropdown').find('.dropdown-toggle-text').text(val);
.closest('.dropdown')
.find('.dropdown-toggle-text')
.text(val);
}); });
} }
......
...@@ -3,7 +3,7 @@ import { GitLabDropdown } from './gl_dropdown'; ...@@ -3,7 +3,7 @@ import { GitLabDropdown } from './gl_dropdown';
export default function initDeprecatedJQueryDropdown($el, opts) { export default function initDeprecatedJQueryDropdown($el, opts) {
// eslint-disable-next-line func-names // eslint-disable-next-line func-names
return $el.each(function() { return $el.each(function () {
if (!$.data(this, 'deprecatedJQueryDropdown')) { if (!$.data(this, 'deprecatedJQueryDropdown')) {
$.data(this, 'deprecatedJQueryDropdown', new GitLabDropdown(this, opts)); $.data(this, 'deprecatedJQueryDropdown', new GitLabDropdown(this, opts));
} }
......
...@@ -32,12 +32,7 @@ export default { ...@@ -32,12 +32,7 @@ export default {
}, },
}, },
methods: { methods: {
updateStoreAfterDelete( updateStoreAfterDelete(store, { data: { designManagementDelete } }) {
store,
{
data: { designManagementDelete },
},
) {
updateStoreAfterDesignsDelete( updateStoreAfterDesignsDelete(
store, store,
designManagementDelete, designManagementDelete,
......
...@@ -116,12 +116,7 @@ export default { ...@@ -116,12 +116,7 @@ export default {
variables: { variables: {
id, id,
}, },
update( update(store, { data: { todoMarkDone } }) {
store,
{
data: { todoMarkDone },
},
) {
const todoMarkDoneFirstError = (todoMarkDone.errors || [])[0]; const todoMarkDoneFirstError = (todoMarkDone.errors || [])[0];
if (todoMarkDoneFirstError) { if (todoMarkDoneFirstError) {
this.$emit('error', Error(todoMarkDoneFirstError)); this.$emit('error', Error(todoMarkDoneFirstError));
......
...@@ -167,12 +167,7 @@ export default { ...@@ -167,12 +167,7 @@ export default {
next(); next();
}, },
methods: { methods: {
addImageDiffNoteToStore( addImageDiffNoteToStore(store, { data: { createImageDiffNote } }) {
store,
{
data: { createImageDiffNote },
},
) {
updateStoreAfterAddImageDiffNote( updateStoreAfterAddImageDiffNote(
store, store,
createImageDiffNote, createImageDiffNote,
...@@ -180,12 +175,7 @@ export default { ...@@ -180,12 +175,7 @@ export default {
this.designVariables, this.designVariables,
); );
}, },
updateImageDiffNoteInStore( updateImageDiffNoteInStore(store, { data: { repositionImageDiffNote } }) {
store,
{
data: { repositionImageDiffNote },
},
) {
return updateStoreAfterRepositionImageDiffNote( return updateStoreAfterRepositionImageDiffNote(
store, store,
repositionImageDiffNote, repositionImageDiffNote,
......
...@@ -187,12 +187,7 @@ export default { ...@@ -187,12 +187,7 @@ export default {
.then(res => this.onUploadDesignDone(res)) .then(res => this.onUploadDesignDone(res))
.catch(() => this.onUploadDesignError()); .catch(() => this.onUploadDesignError());
}, },
afterUploadDesign( afterUploadDesign(store, { data: { designManagementUpload } }) {
store,
{
data: { designManagementUpload },
},
) {
updateStoreAfterUploadDesign(store, designManagementUpload, this.projectQueryBody); updateStoreAfterUploadDesign(store, designManagementUpload, this.projectQueryBody);
}, },
onUploadDesignDone(res) { onUploadDesignDone(res) {
......
...@@ -13,13 +13,7 @@ export default [ ...@@ -13,13 +13,7 @@ export default [
name: DESIGN_ROUTE_NAME, name: DESIGN_ROUTE_NAME,
path: '/designs/:id', path: '/designs/:id',
component: DesignDetail, component: DesignDetail,
beforeEnter( beforeEnter({ params: { id } }, _, next) {
{
params: { id },
},
_,
next,
) {
if (typeof id === 'string') { if (typeof id === 'string') {
next(); next();
} }
......
...@@ -24,9 +24,7 @@ export default class Diff { ...@@ -24,9 +24,7 @@ export default class Diff {
if (!tab || (tab && tab.dataset && tab.dataset.isLocked !== '')) if (!tab || (tab && tab.dataset && tab.dataset.isLocked !== ''))
FilesCommentButton.init($diffFile); FilesCommentButton.init($diffFile);
const firstFile = $('.files') const firstFile = $('.files').first().get(0);
.first()
.get(0);
const canCreateNote = firstFile && firstFile.hasAttribute('data-can-create-note'); const canCreateNote = firstFile && firstFile.hasAttribute('data-can-create-note');
$diffFile.each((index, file) => initImageDiffHelper.initImageDiff(file, canCreateNote)); $diffFile.each((index, file) => initImageDiffHelper.initImageDiff(file, canCreateNote));
......
...@@ -281,12 +281,7 @@ export default { ...@@ -281,12 +281,7 @@ export default {
const id = window?.location?.hash; const id = window?.location?.hash;
if (id && id.indexOf('#note') !== 0) { if (id && id.indexOf('#note') !== 0) {
this.setHighlightedRow( this.setHighlightedRow(id.split('diff-content').pop().slice(1));
id
.split('diff-content')
.pop()
.slice(1),
);
} }
}, },
beforeCreate() { beforeCreate() {
...@@ -404,10 +399,7 @@ export default { ...@@ -404,10 +399,7 @@ export default {
}, },
setDiscussions() { setDiscussions() {
requestIdleCallback( requestIdleCallback(
() => () => this.assignDiscussionsToDiff().then(this.$nextTick).then(this.startTaskList),
this.assignDiscussionsToDiff()
.then(this.$nextTick)
.then(this.startTaskList),
{ timeout: 1000 }, { timeout: 1000 },
); );
}, },
......
...@@ -139,7 +139,7 @@ export default { ...@@ -139,7 +139,7 @@ export default {
return !this.isCollapsed || this.automaticallyCollapsed; return !this.isCollapsed || this.automaticallyCollapsed;
}, },
showWarning() { showWarning() {
return this.isCollapsed && (this.automaticallyCollapsed && !this.viewDiffsFileByFile); return this.isCollapsed && this.automaticallyCollapsed && !this.viewDiffsFileByFile;
}, },
showContent() { showContent() {
return !this.isCollapsed && !this.isFileTooLarge; return !this.isCollapsed && !this.isFileTooLarge;
......
...@@ -58,9 +58,9 @@ export default { ...@@ -58,9 +58,9 @@ export default {
class="code diff-wrap-lines js-syntax-highlight text-file js-diff-inline-view" class="code diff-wrap-lines js-syntax-highlight text-file js-diff-inline-view"
> >
<colgroup> <colgroup>
<col style="width: 50px;" /> <col style="width: 50px" />
<col style="width: 50px;" /> <col style="width: 50px" />
<col style="width: 8px;" /> <col style="width: 8px" />
<col /> <col />
</colgroup> </colgroup>
<tbody> <tbody>
......
...@@ -57,11 +57,11 @@ export default { ...@@ -57,11 +57,11 @@ export default {
class="code diff-wrap-lines js-syntax-highlight text-file" class="code diff-wrap-lines js-syntax-highlight text-file"
> >
<colgroup> <colgroup>
<col style="width: 50px;" /> <col style="width: 50px" />
<col style="width: 8px;" /> <col style="width: 8px" />
<col /> <col />
<col style="width: 50px;" /> <col style="width: 50px" />
<col style="width: 8px;" /> <col style="width: 8px" />
<col /> <col />
</colgroup> </colgroup>
<tbody> <tbody>
......
...@@ -307,7 +307,8 @@ export const startRenderDiffsQueue = ({ state, commit }) => { ...@@ -307,7 +307,8 @@ export const startRenderDiffsQueue = ({ state, commit }) => {
const nextFile = state.diffFiles.find( const nextFile = state.diffFiles.find(
file => file =>
!file.renderIt && !file.renderIt &&
(file.viewer && (!isCollapsed(file) || file.viewer.name !== diffViewerModes.text)), file.viewer &&
(!isCollapsed(file) || file.viewer.name !== diffViewerModes.text),
); );
if (nextFile) { if (nextFile) {
......
...@@ -138,7 +138,10 @@ export const fileLineCoverage = state => (file, line) => { ...@@ -138,7 +138,10 @@ export const fileLineCoverage = state => (file, line) => {
* @returns {number} * @returns {number}
*/ */
export const currentDiffIndex = state => export const currentDiffIndex = state =>
Math.max(0, state.diffFiles.findIndex(diff => diff.file_hash === state.currentDiffFileId)); Math.max(
0,
state.diffFiles.findIndex(diff => diff.file_hash === state.currentDiffFileId),
);
export const diffLines = state => (file, unifiedDiffComponents) => { export const diffLines = state => (file, unifiedDiffComponents) => {
if (!unifiedDiffComponents && state.diffViewType === INLINE_DIFF_VIEW_TYPE) { if (!unifiedDiffComponents && state.diffViewType === INLINE_DIFF_VIEW_TYPE) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import { ACTIVE_CLASS } from './constants'; import { ACTIVE_CLASS } from './constants';
const Keyboard = function() { const Keyboard = function () {
var currentKey; var currentKey;
var currentFocus; var currentFocus;
var isUpArrow = false; var isUpArrow = false;
......
...@@ -46,7 +46,7 @@ const Ajax = { ...@@ -46,7 +46,7 @@ const Ajax = {
.then(data => self._loadData(data, config, self)) .then(data => self._loadData(data, config, self))
.catch(config.onError); .catch(config.onError);
}, },
destroy: function() { destroy: function () {
this.destroyed = true; this.destroyed = true;
}, },
}; };
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import AjaxCache from '../../lib/utils/ajax_cache'; import AjaxCache from '../../lib/utils/ajax_cache';
const AjaxFilter = { const AjaxFilter = {
init: function(hook) { init: function (hook) {
this.destroyed = false; this.destroyed = false;
this.hook = hook; this.hook = hook;
this.notLoading(); this.notLoading();
...@@ -93,9 +93,9 @@ const AjaxFilter = { ...@@ -93,9 +93,9 @@ const AjaxFilter = {
list.currentIndex = 0; list.currentIndex = 0;
}, },
buildParams: function(params) { buildParams: function (params) {
if (!params) return ''; if (!params) return '';
var paramsArray = Object.keys(params).map(function(param) { var paramsArray = Object.keys(params).map(function (param) {
return param + '=' + (params[param] || ''); return param + '=' + (params[param] || '');
}); });
return '?' + paramsArray.join('&'); return '?' + paramsArray.join('&');
......
/* eslint-disable */ /* eslint-disable */
const Filter = { const Filter = {
keydown: function(e) { keydown: function (e) {
if (this.destroyed) return; if (this.destroyed) return;
var hiddenCount = 0; var hiddenCount = 0;
...@@ -21,22 +21,22 @@ const Filter = { ...@@ -21,22 +21,22 @@ const Filter = {
if (config && config.filterFunction && typeof config.filterFunction === 'function') { if (config && config.filterFunction && typeof config.filterFunction === 'function') {
filterFunction = config.filterFunction; filterFunction = config.filterFunction;
} else { } else {
filterFunction = function(o) { filterFunction = function (o) {
// cheap string search // cheap string search
o.droplab_hidden = o[config.template].toLowerCase().indexOf(value) === -1; o.droplab_hidden = o[config.template].toLowerCase().indexOf(value) === -1;
return o; return o;
}; };
} }
dataHiddenCount = data.filter(function(o) { dataHiddenCount = data.filter(function (o) {
return !o.droplab_hidden; return !o.droplab_hidden;
}).length; }).length;
matches = data.map(function(o) { matches = data.map(function (o) {
return filterFunction(o, value); return filterFunction(o, value);
}); });
hiddenCount = matches.filter(function(o) { hiddenCount = matches.filter(function (o) {
return !o.droplab_hidden; return !o.droplab_hidden;
}).length; }).length;
......
...@@ -5,12 +5,7 @@ import { DATA_TRIGGER, DATA_DROPDOWN, TEMPLATE_REGEX } from './constants'; ...@@ -5,12 +5,7 @@ import { DATA_TRIGGER, DATA_DROPDOWN, TEMPLATE_REGEX } from './constants';
const utils = { const utils = {
toCamelCase(attr) { toCamelCase(attr) {
return this.camelize( return this.camelize(attr.split('-').slice(1).join(' '));
attr
.split('-')
.slice(1)
.join(' '),
);
}, },
template(templateString, data) { template(templateString, data) {
......
...@@ -219,12 +219,8 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) { ...@@ -219,12 +219,8 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) {
const caretStart = textarea.selectionStart; const caretStart = textarea.selectionStart;
const caretEnd = textarea.selectionEnd; const caretEnd = textarea.selectionEnd;
const textEnd = $(child).val().length; const textEnd = $(child).val().length;
const beforeSelection = $(child) const beforeSelection = $(child).val().substring(0, caretStart);
.val() const afterSelection = $(child).val().substring(caretEnd, textEnd);
.substring(0, caretStart);
const afterSelection = $(child)
.val()
.substring(caretEnd, textEnd);
$(child).val(beforeSelection + formattedText + afterSelection); $(child).val(beforeSelection + formattedText + afterSelection);
textarea.setSelectionRange(caretStart + formattedText.length, caretEnd + formattedText.length); textarea.setSelectionRange(caretStart + formattedText.length, caretEnd + formattedText.length);
textarea.style.height = `${textarea.scrollHeight}px`; textarea.style.height = `${textarea.scrollHeight}px`;
...@@ -289,10 +285,7 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) { ...@@ -289,10 +285,7 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) {
form.find('.markdown-selector').click(function onMarkdownClick(e) { form.find('.markdown-selector').click(function onMarkdownClick(e) {
e.preventDefault(); e.preventDefault();
$(this) $(this).closest('.gfm-form').find('.div-dropzone').click();
.closest('.gfm-form')
.find('.div-dropzone')
.click();
formTextarea.focus(); formTextarea.focus();
}); });
......
...@@ -197,9 +197,7 @@ export default class DueDateSelectors { ...@@ -197,9 +197,7 @@ export default class DueDateSelectors {
$('.js-clear-due-date,.js-clear-start-date').on('click', e => { $('.js-clear-due-date,.js-clear-start-date').on('click', e => {
e.preventDefault(); e.preventDefault();
const calendar = $(e.target) const calendar = $(e.target).siblings('.datepicker').data('pikaday');
.siblings('.datepicker')
.data('pikaday');
calendar.setDate(null); calendar.setDate(null);
}); });
} }
......
...@@ -22,9 +22,7 @@ export class CiSchemaExtension extends EditorLiteExtension { ...@@ -22,9 +22,7 @@ export class CiSchemaExtension extends EditorLiteExtension {
.replace(':project_path', projectPath) .replace(':project_path', projectPath)
.replace(':ref', ref) .replace(':ref', ref)
.replace(':filename', EXTENSION_CI_SCHEMA_FILE_NAME_MATCH); .replace(':filename', EXTENSION_CI_SCHEMA_FILE_NAME_MATCH);
const modelFileName = this.getModel() const modelFileName = this.getModel().uri.path.split('/').pop();
.uri.path.split('/')
.pop();
registerSchema({ registerSchema({
uri: ciSchemaUri, uri: ciSchemaUri,
......
...@@ -242,8 +242,9 @@ export function getEmojiInfo(query) { ...@@ -242,8 +242,9 @@ export function getEmojiInfo(query) {
export function emojiFallbackImageSrc(inputName) { export function emojiFallbackImageSrc(inputName) {
const { name } = getEmojiInfo(inputName); const { name } = getEmojiInfo(inputName);
return `${gon.asset_host || ''}${gon.relative_url_root || return `${gon.asset_host || ''}${
''}/-/emojis/${EMOJI_VERSION}/${name}.png`; gon.relative_url_root || ''
}/-/emojis/${EMOJI_VERSION}/${name}.png`;
} }
export function emojiImageTag(name, src) { export function emojiImageTag(name, src) {
......
...@@ -100,7 +100,7 @@ export default { ...@@ -100,7 +100,7 @@ export default {
/> />
<gl-sprintf v-if="errorFn" :message="__('%{spanStart}in%{spanEnd} %{errorFn}')"> <gl-sprintf v-if="errorFn" :message="__('%{spanStart}in%{spanEnd} %{errorFn}')">
<template #span="{content}"> <template #span="{ content }">
<span class="gl-text-gray-200">{{ content }}&nbsp;</span> <span class="gl-text-gray-200">{{ content }}&nbsp;</span>
</template> </template>
<template #errorFn> <template #errorFn>
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
</gl-sprintf> </gl-sprintf>
<gl-sprintf :message="__('%{spanStart}at line%{spanEnd} %{errorLine}%{errorColumn}')"> <gl-sprintf :message="__('%{spanStart}at line%{spanEnd} %{errorLine}%{errorColumn}')">
<template #span="{content}"> <template #span="{ content }">
<span class="gl-text-gray-200">{{ content }}&nbsp;</span> <span class="gl-text-gray-200">{{ content }}&nbsp;</span>
</template> </template>
<template #errorLine> <template #errorLine>
......
...@@ -30,7 +30,7 @@ export default { ...@@ -30,7 +30,7 @@ export default {
}, },
computed: { computed: {
strategyComponent() { strategyComponent() {
return STRATEGIES[(this.strategy?.name)]; return STRATEGIES[this.strategy?.name];
}, },
}, },
methods: { methods: {
......
...@@ -74,12 +74,7 @@ export default { ...@@ -74,12 +74,7 @@ export default {
state.isRotating = true; state.isRotating = true;
state.hasRotateError = false; state.hasRotateError = false;
}, },
[types.RECEIVE_ROTATE_INSTANCE_ID_SUCCESS]( [types.RECEIVE_ROTATE_INSTANCE_ID_SUCCESS](state, { data: { token } }) {
state,
{
data: { token },
},
) {
state.isRotating = false; state.isRotating = false;
state.instanceId = token; state.instanceId = token;
state.hasRotateError = false; state.hasRotateError = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment