리펙토링: 전체 구조 검토, 개선
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { state } from './state.js';
|
||||
import { showLoading, hideLoading, setStatus, showToast } from './ui.js';
|
||||
import { renderGrid } from './grid.js';
|
||||
import * as history from './history.js';
|
||||
|
||||
const inputPrefix = document.getElementById('input-prefix');
|
||||
const inputDigits = document.getElementById('input-digits');
|
||||
@@ -75,6 +76,8 @@ export async function doRename() {
|
||||
state.files.push(...newList);
|
||||
state.selectedIdxs.clear();
|
||||
renderGrid();
|
||||
history.reset();
|
||||
history.push(state.files);
|
||||
} catch (e) {
|
||||
hideLoading();
|
||||
alert('오류 발생: ' + e.message);
|
||||
|
||||
Reference in New Issue
Block a user