6
6
<svg-icon name =" pin" ></svg-icon >
7
7
</button >
8
8
</template >
9
- <div >
10
- <div class =" flex justify-between text-center" >
11
- <h6 class =" whitespace-no-wrap cursor-pointer py-1 px-2 border-r" :class =" {'border-b bg-grey-10': ! showingPinTab }" @click =" showingPinTab = true" >
12
- {{ __('Pin to Favorites') }}
13
- </h6 >
14
- <h6 class =" whitespace-no-wrap cursor-pointer py-1 px-2 rounded-tr" :class =" {'border-b bg-grey-10': showingPinTab }" @click =" showingPinTab = false" >
15
- {{ __('Make Start Page') }}
16
- </h6 >
17
- </div >
18
- <div class =" p-2 flex items-center" v-if =" showingPinTab" >
19
- <input type =" text" class =" input-text" autofocus ref =" fave" v-model =" name" @keydown.enter =" save" >
9
+ <div class =" p-2 pb-1" >
10
+ <h6 class =" mb-1" >{{ __('Pin to Favorites') }}</h6 >
11
+ <div class =" flex items-center" >
12
+ <input type =" text" class =" input-text w-auto" autofocus ref =" fave" v-model =" name" @keydown.enter =" save" >
20
13
<button @click =" save" class =" btn-primary ml-1" >{{ __('Save') }}</button >
21
14
</div >
22
- <div class =" p-2" v-else >
23
- <button @click =" makeStartPage" class =" btn block w-full" >{{ __('Start here on sign in') }}</button >
24
- </div >
15
+ <button @click =" makeStartPage" class =" mt-1 text-xs text-blue outline-none hover:text-blue-darker" >{{ __('Set as sign-in page') }} &rarr ; </button >
25
16
</div >
26
17
</popover >
27
18
<div v-else >
@@ -39,8 +30,7 @@ export default {
39
30
data () {
40
31
return {
41
32
name: document .title .replace (' ‹ Statamic' , ' ' ),
42
- currentUrl: this .$config .get (' urlPath' ).substr (this .$config .get (' cpRoot' ).length + 1 ),
43
- showingPinTab: true
33
+ currentUrl: this .$config .get (' urlPath' ).substr (this .$config .get (' cpRoot' ).length + 1 )
44
34
}
45
35
},
46
36
@@ -72,10 +62,6 @@ export default {
72
62
setTimeout (() => this .$refs .fave .select (), 20 );
73
63
},
74
64
75
- toggleTab () {
76
- this .showingPinTab = ! this .showingPinTab ;
77
- },
78
-
79
65
save () {
80
66
this .saving = true ;
81
67
this .$preferences .append (' favorites' , this .favorite ).then (response => {
0 commit comments