Skip to content

Globally configured texts are never used #27

@toncid

Description

@toncid

The following chunk makes sure that the scope value is always set:

// default text
scope.todayText = scope.todayText || 'Today';
scope.nowText = scope.nowText || 'Now';
scope.clearText = scope.clearText || 'Clear';
scope.closeText = scope.closeText || 'Close';
scope.dateText = scope.dateText || 'Date';
scope.timeText = scope.timeText || 'Time';

Afterwards, the getText() function never fall back to the global config, i.e. scope[key + 'Text'] is always set:

scope.getText = function (key) {
    return scope[key + 'Text'] || uiDatetimePickerConfig[key + 'Text'];
};

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions