superdesk/superdesk-client-core

View on GitHub
scripts/apps/stream/directives/ActivityMessage.ts

Summary

Maintainability
A
0 mins
Test Coverage
ActivityMessage.$inject = ['sdActivityMessage'];
export function ActivityMessage(sdActivityMessage) {
    return {
        scope: {activity: '='},
        template: '{{display_message}}',
        link: function(scope, element, attrs) {
            scope.display_message = sdActivityMessage.format(scope.activity);
        },
    };
}