@@ -77,6 +77,7 @@ const Applications = observer(() => {
7777 < TableCell > Token</ TableCell >
7878 < TableCell > Description</ TableCell >
7979 < TableCell > Priority</ TableCell >
80+ < TableCell > Sort Order</ TableCell >
8081 < TableCell > Last Used</ TableCell >
8182 < TableCell />
8283 < TableCell />
@@ -88,6 +89,7 @@ const Applications = observer(() => {
8889 key = { app . id }
8990 description = { app . description }
9091 defaultPriority = { app . defaultPriority }
92+ sortOrder = { app . sortOrder }
9193 image = { app . image }
9294 name = { app . name }
9395 value = { app . token }
@@ -117,12 +119,13 @@ const Applications = observer(() => {
117119 { toUpdateApp != null && (
118120 < UpdateApplicationDialog
119121 fClose = { ( ) => setToUpdateApp ( undefined ) }
120- fOnSubmit = { ( name , description , defaultPriority ) =>
121- appStore . update ( toUpdateApp . id , name , description , defaultPriority )
122+ fOnSubmit = { ( name , description , defaultPriority , sortOrder ) =>
123+ appStore . update ( toUpdateApp . id , name , description , defaultPriority , sortOrder )
122124 }
123125 initialDescription = { toUpdateApp ?. description }
124126 initialName = { toUpdateApp ?. name }
125127 initialDefaultPriority = { toUpdateApp ?. defaultPriority }
128+ initialSortOrder = { appStore . getByID ( toUpdateApp . id ) . sortOrder }
126129 />
127130 ) }
128131 { toDeleteApp != null && (
@@ -143,6 +146,7 @@ interface IRowProps {
143146 noDelete : boolean ;
144147 description : string ;
145148 defaultPriority : number ;
149+ sortOrder : number ;
146150 lastUsed : string | null ;
147151 fUpload : VoidFunction ;
148152 image : string ;
@@ -156,6 +160,7 @@ const Row = ({
156160 noDelete,
157161 description,
158162 defaultPriority,
163+ sortOrder,
159164 lastUsed,
160165 fDelete,
161166 fUpload,
@@ -178,6 +183,7 @@ const Row = ({
178183 </ TableCell >
179184 < TableCell > { description } </ TableCell >
180185 < TableCell > { defaultPriority } </ TableCell >
186+ < TableCell > { sortOrder } </ TableCell >
181187 < TableCell >
182188 < LastUsedCell lastUsed = { lastUsed } />
183189 </ TableCell >
0 commit comments