@titaui/pc 1.16.20-beta.1 → 1.16.20-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -34,11 +34,6 @@ var addVisibilityButton = function addVisibilityButton(_ref2, actions) {
|
|
|
34
34
|
detailInfo = _ref2.detailInfo,
|
|
35
35
|
changeVisiblilty = _ref2.changeVisiblilty;
|
|
36
36
|
var children = [{
|
|
37
|
-
title: (0, _getLocale.getLocale)('OKR_MyO_Pop_Public'),
|
|
38
|
-
onClick: function onClick() {
|
|
39
|
-
return changeVisiblilty(1);
|
|
40
|
-
}
|
|
41
|
-
}, {
|
|
42
37
|
title: (0, _getLocale.getLocale)('OKR_MyO_From_Associatedmem'),
|
|
43
38
|
onClick: function onClick() {
|
|
44
39
|
return changeVisiblilty(2);
|
|
@@ -55,11 +50,27 @@ var addVisibilityButton = function addVisibilityButton(_ref2, actions) {
|
|
|
55
50
|
}
|
|
56
51
|
}];
|
|
57
52
|
|
|
53
|
+
if (window.BSGlobal.tenantInfo.isOpenInfo) {
|
|
54
|
+
children.unshift({
|
|
55
|
+
title: (0, _getLocale.getLocale)('OKR_MyO_Pop_Public'),
|
|
56
|
+
onClick: function onClick() {
|
|
57
|
+
return changeVisiblilty(1);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
var getVisibilityMapText = {
|
|
63
|
+
1: (0, _getLocale.getLocale)('OKR_MyO_Pop_Public'),
|
|
64
|
+
2: (0, _getLocale.getLocale)('OKR_MyO_From_Associatedmem'),
|
|
65
|
+
3: (0, _getLocale.getLocale)('OKR_MyO_Pop_Directrep'),
|
|
66
|
+
4: (0, _getLocale.getLocale)('OKR_MyO_Pop_Specified')
|
|
67
|
+
};
|
|
68
|
+
|
|
58
69
|
var editable = auth.hasAuth() && detailInfo.status === _enums.OkrStatus.inProgress;
|
|
59
70
|
|
|
60
71
|
actions.push({
|
|
61
72
|
icon: visibility !== 1 ? 'tu-icon-simi-icon' : 'tu-icon-gongkai',
|
|
62
|
-
title:
|
|
73
|
+
title: getVisibilityMapText[visibility] + (0, _getLocale.getLocale)('OKR_MyO_Text_Visible'),
|
|
63
74
|
children: editable ? children : null
|
|
64
75
|
});
|
|
65
76
|
};
|