mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
16 lines (15 loc) • 449 B
JavaScript
;
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPlugin = isPlugin;
exports.getName = getName;
function isPlugin(item) {
return item.manifest.id !== undefined;
}
function getName(item) {
if (isPlugin(item)) {
return item.manifest.name;
}
return item.manifest.display_name;
}