-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add revert changes button #818
base: develop
Are you sure you want to change the base?
Conversation
8875ead
to
ae0b517
Compare
@@ -149,6 +149,12 @@ export default FdBaseSheet.extend( | |||
iconClasses: ' icon-fd-uml-edit icon', | |||
buttonAction: this.get('umlСorrector').bind(this) | |||
}, | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
я все еще думаю что стоит кнопку перенести в тоол бар
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Исправил
const revert = () => { | ||
this.openSheet(this.get('sheetComponentName'), this.get('selectedValue')); | ||
} | ||
const currentStageRecords = new A([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
мб использовать метод из сервиса который проверяет диаграммы при открытии? https://github.com/Flexberry/ember-flexberry-designer/blob/develop/addon/services/fd-sheet-service.js#L236 и тогда поидее эта логика будет для всех листов работать
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Исправил
a0779e7
to
339312d
Compare
@@ -201,6 +201,10 @@ export default Component.extend(FdReadonlyProjectMixin, FdShareFunctionMixin, { | |||
}, | |||
|
|||
actions: { | |||
revertChanges() { | |||
this.openSheet(this.get('sheetComponentName'), this.get('targetObject.selectedValue.data')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
66ac521
to
493fe61
Compare
@@ -251,6 +251,10 @@ export default FdBaseSheet.extend( | |||
this.set('selectedValue', undefined); | |||
}, | |||
|
|||
revertChanges() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
удалить
@@ -135,6 +135,21 @@ export default FdBaseSheet.extend({ | |||
this.set('selectedValue', undefined); | |||
}, | |||
|
|||
revertChanges() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
удалить
@@ -4,10 +4,16 @@ | |||
</div> | |||
<div class="fd-sheet-header"> | |||
{{fd-sheets/fd-sheets-tool-bar | |||
revertChanges=revertChanges |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это все что? зачем? убрать мусор
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Готово
@@ -4,10 +4,15 @@ | |||
</div> | |||
<div class="fd-sheet-header {{unless isAddMode "fd-sheet-diagram-header"}} {{if _collapseToolbar "fd-toolbar-hidden"}}"> | |||
{{fd-sheets/fd-sheets-tool-bar | |||
isDiagramVisible=isDiagramVisible |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
убрать это все
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Готово
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
На форме диаграммы и модели приложения отличается реализация метода deactivateListItem
, поэтому я передаю его параметром в тулбар
revertChanges() { | ||
const unsavedData = this.get('fdSheetService').findUnsavedSheetData(this.get('sheetComponentName')); | ||
const revert = () => { | ||
this.openSheet(this.get('sheetComponentName'), this.get('selectedValue')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contentSheetValue есть свойство надо использовать его!
selectedValue тут нет!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не this.openSheet наверное а сервисом надо дергать?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Готово
4d9b81e
to
10899a6
Compare
10899a6
to
bb31e77
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
No description provided.