mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(editor): Overhaul workflow level executions list (#5089)
* fix(editor): update texts and styles * fix(editor): update texts and styles * fix(editor): move 'No execution found' to sidebar * fix(editor): change empty state title in executions * fix(editor): workflow execution list delete item * fix(editor): workflow execution always show sidebar * fix(editor): workflow execution unify date display mode * fix(editor): workflow execution empty list
This commit is contained in:
@@ -36,8 +36,11 @@ export const genericHelpers = mixins(showMessage).extend({
|
||||
|
||||
return `${minutesPassed}:${secondsLeft}${this.$locale.baseText('genericHelpers.minShort')}`;
|
||||
},
|
||||
convertToDisplayDate(epochTime: number): { date: string; time: string } {
|
||||
const formattedDate = dateformat(epochTime, 'd mmm, yyyy#HH:MM:ss');
|
||||
convertToDisplayDate(fullDate: Date | string | number): { date: string; time: string } {
|
||||
const mask = `d mmm${
|
||||
new Date(fullDate).getFullYear() === new Date().getFullYear() ? '' : ', yyyy'
|
||||
}#HH:MM:ss`;
|
||||
const formattedDate = dateformat(fullDate, mask);
|
||||
const [date, time] = formattedDate.split('#');
|
||||
return { date, time };
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user