Commit 46b969f
feat: wire allowCreateView/viewActions from ObjectViewSchema to ViewSwitcher
- Add allowCreateView and viewActions to ObjectViewSchema (types)
- Add onCreateView and onViewAction props to engine ObjectViewProps
- Wire allowCreateView/viewActions in viewSwitcherSchema builder
- Pass onCreateView/onViewAction callbacks to ViewSwitcher rendering
- Console ObjectView: pass allowCreateView=isAdmin and viewActions
- Console ObjectView: wire onCreateView/onViewAction to both PluginObjectView instances
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent 277bbcb commit 46b969f
3 files changed
Lines changed: 57 additions & 2 deletions
File tree
- apps/console/src/components
- packages
- plugin-view/src
- types/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
655 | 662 | | |
656 | 663 | | |
657 | 664 | | |
| |||
663 | 670 | | |
664 | 671 | | |
665 | 672 | | |
666 | | - | |
| 673 | + | |
667 | 674 | | |
668 | 675 | | |
669 | 676 | | |
| |||
814 | 821 | | |
815 | 822 | | |
816 | 823 | | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
817 | 833 | | |
818 | 834 | | |
819 | 835 | | |
| |||
850 | 866 | | |
851 | 867 | | |
852 | 868 | | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
853 | 878 | | |
854 | 879 | | |
855 | 880 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
144 | 154 | | |
145 | 155 | | |
146 | 156 | | |
| |||
205 | 215 | | |
206 | 216 | | |
207 | 217 | | |
| 218 | + | |
| 219 | + | |
208 | 220 | | |
209 | 221 | | |
210 | 222 | | |
| |||
501 | 513 | | |
502 | 514 | | |
503 | 515 | | |
| 516 | + | |
| 517 | + | |
504 | 518 | | |
505 | | - | |
| 519 | + | |
506 | 520 | | |
507 | 521 | | |
508 | 522 | | |
| |||
955 | 969 | | |
956 | 970 | | |
957 | 971 | | |
| 972 | + | |
| 973 | + | |
958 | 974 | | |
959 | 975 | | |
960 | 976 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1067 | 1067 | | |
1068 | 1068 | | |
1069 | 1069 | | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1070 | 1084 | | |
1071 | 1085 | | |
1072 | 1086 | | |
| |||
0 commit comments