Example #1
0
 warningEventLogTypeFilter: function(item) {
   return utils.isEventLogTypeWarning(item);
 },
Example #2
0
        });

        // Handle Cancel Event Logs Item Delete
        $(this.$el).on('click', '.delete-inline-item-confirmation-cancel', (e) => {
          e.preventDefault();
          this.hideDeleteConfirmationButtons(e);
        });
      },

      detached: function() {
        this.unwatchIsHighlighted();
      },

      methods: {
        getEventLogTypeClass(event) {
          if (utils.isEventLogTypeWarning(event)) {
            return 'event-type-warning';
          }
          if (utils.isEventLogTypeError(event)) {
            return 'event-type-error';
          }
          return 'event-type-info';
        },

        getTimeFromNow(event) {
          return utils.humanizeTimeFromNow(event.documentUpdateTimeMicros);
        },

        toggleExpandDescription($e) {
          $e.preventDefault();
          this.expanded = !this.expanded;