Change order of global buttons
This commit is contained in:
parent
220e6cd2ad
commit
aa805a5505
|
|
@ -238,6 +238,15 @@ export class GraphView extends ItemView {
|
||||||
});
|
});
|
||||||
this.deleteSelectedButton.addEventListener('click', this.handleDeleteSelectedNodes.bind(this));
|
this.deleteSelectedButton.addEventListener('click', this.handleDeleteSelectedNodes.bind(this));
|
||||||
|
|
||||||
|
this.graphSettingsButton = toolbar.createEl('button', {
|
||||||
|
cls: 'global-action-button',
|
||||||
|
attr: { 'aria-label': 'Настройки графа', 'data-tooltip': 'Настроить системный промпт для текущего графа' },
|
||||||
|
text: '⚙️' // Иконка шестеренки
|
||||||
|
});
|
||||||
|
this.graphSettingsButton.addEventListener('click', this.handleGraphSettingsClick.bind(this));
|
||||||
|
// Деактивируем кнопку по умолчанию, пока граф не выбран
|
||||||
|
this.graphSettingsButton.setAttr('disabled', 'true');
|
||||||
|
|
||||||
this.newIndependentChatActionButton = toolbar.createEl('button', {
|
this.newIndependentChatActionButton = toolbar.createEl('button', {
|
||||||
cls: 'global-action-button',
|
cls: 'global-action-button',
|
||||||
attr: { 'aria-label': 'Новый независимый чат', 'data-tooltip': 'Начать новую беседу, формируя отдельный, независимый подграф' },
|
attr: { 'aria-label': 'Новый независимый чат', 'data-tooltip': 'Начать новую беседу, формируя отдельный, независимый подграф' },
|
||||||
|
|
@ -247,15 +256,6 @@ export class GraphView extends ItemView {
|
||||||
// Эмитируем новое событие, которое будет слушать ТОЛЬКО ChatView
|
// Эмитируем новое событие, которое будет слушать ТОЛЬКО ChatView
|
||||||
this.plugin.eventBus.emit('start-new-independent-chat');
|
this.plugin.eventBus.emit('start-new-independent-chat');
|
||||||
});
|
});
|
||||||
|
|
||||||
this.graphSettingsButton = toolbar.createEl('button', {
|
|
||||||
cls: 'global-action-button',
|
|
||||||
attr: { 'aria-label': 'Настройки графа', 'data-tooltip': 'Настроить системный промпт для текущего графа' },
|
|
||||||
text: '⚙️' // Иконка шестеренки
|
|
||||||
});
|
|
||||||
this.graphSettingsButton.addEventListener('click', this.handleGraphSettingsClick.bind(this));
|
|
||||||
// Деактивируем кнопку по умолчанию, пока граф не выбран
|
|
||||||
this.graphSettingsButton.setAttr('disabled', 'true');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------- Graph Panel Integration --------------------------------------------------
|
// ----------------------------------------------- Graph Panel Integration --------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user