2018-06-04 07:48:32 +00:00
|
|
|
import ngModule from '../module';
|
2020-03-17 13:43:46 +00:00
|
|
|
import Section from 'salix/components/section';
|
2018-06-04 07:48:32 +00:00
|
|
|
|
2020-03-17 13:43:46 +00:00
|
|
|
class Controller extends Section {
|
2024-07-22 06:40:12 +00:00
|
|
|
constructor($element, $) {
|
|
|
|
super($element, $);
|
2020-05-06 16:42:50 +00:00
|
|
|
}
|
|
|
|
|
2024-07-22 06:40:12 +00:00
|
|
|
async $onInit() {
|
|
|
|
this.$state.go('item.card.summary', {id: this.$params.id});
|
|
|
|
window.location.href = await this.vnApp.getUrl(`item/${this.$params.id}/diary`);
|
2023-02-21 10:48:56 +00:00
|
|
|
}
|
2018-06-04 07:48:32 +00:00
|
|
|
}
|
|
|
|
|
2020-07-24 12:22:30 +00:00
|
|
|
ngModule.vnComponent('vnItemDiary', {
|
2018-06-04 07:48:32 +00:00
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller,
|
|
|
|
bindings: {
|
|
|
|
item: '<'
|
|
|
|
}
|
|
|
|
});
|