125
125
description =" Prevent search engines from indexing this page"
126
126
:modelValue =" Boolean(store.activePage?.disable_indexing)"
127
127
@update:modelValue =" (val: Boolean) => store.updateActivePage('disable_indexing', val)" />
128
+ <hr class =" w-full border-outline-gray-2" />
129
+ <div class =" flex items-center justify-between" >
130
+ <div class =" flex flex-col gap-2" >
131
+ <span class =" text-base font-medium text-ink-gray-9" >Folder</span >
132
+ <p class =" text-base text-ink-gray-5" >Set folder to organize your page</p >
133
+ </div >
134
+ <div >
135
+ <BuilderInput
136
+ class =" w-fit"
137
+ type =" select"
138
+ :options =" folderOptions"
139
+ :modelValue =" store.activePage?.project_folder"
140
+ @update:modelValue ="
141
+ (val: string) => store.updateActivePage('project_folder', val)
142
+ " ></BuilderInput >
143
+ </div >
144
+ </div >
128
145
</div >
129
146
</div >
130
147
</div >
134
151
import ImageUploader from " @/components/Controls/ImageUploader.vue" ;
135
152
import Switch from " @/components/Controls/Switch.vue" ;
136
153
import AuthenticatedUserIcon from " @/components/Icons/AuthenticatedUser.vue" ;
154
+ import builderProjectFolder from " @/data/builderProjectFolder" ;
137
155
import { builderSettings } from " @/data/builderSettings" ;
138
156
import useStore from " @/store" ;
157
+ import { BuilderProjectFolder } from " @/types/Builder/BuilderProjectFolder" ;
139
158
import { Button , Tooltip } from " frappe-ui" ;
140
159
import FeatherIcon from " frappe-ui/src/components/FeatherIcon.vue" ;
141
160
import { computed } from " vue" ;
@@ -146,6 +165,22 @@ const fullURL = computed(
146
165
() => window .location .origin + (store .activePage ?.route ? " /" + store .activePage .route : " " ),
147
166
);
148
167
168
+ const folderOptions = computed (() => {
169
+ const homeOption = {
170
+ label: " Home" ,
171
+ value: " " ,
172
+ };
173
+
174
+ const options = builderProjectFolder .data .map ((folder : BuilderProjectFolder ) => {
175
+ return {
176
+ label: folder .folder_name ,
177
+ value: folder .folder_name ,
178
+ };
179
+ });
180
+
181
+ return [homeOption , ... options ];
182
+ });
183
+
149
184
const handleClick = () => {
150
185
console .log (" clicked" );
151
186
};
0 commit comments