| 
      
            Lines 5-10
          
      
      
        Link Here
      
     | 
  
        
          | 5 | 
                          ref="table"  | 
          5 | 
                          ref="table"  | 
        
        
          | 6 | 
                          v-bind="tableOptions"  | 
          6 | 
                          v-bind="tableOptions"  | 
        
        
          | 7 | 
                          :key="JSON.stringify(tableOptions)"  | 
          7 | 
                          :key="JSON.stringify(tableOptions)"  | 
        
            
               | 
               | 
              8 | 
                              @show="goToLicense"  | 
            
        
          | 8 | 
                      />  | 
          9 | 
                      />  | 
        
        
          | 9 | 
                  </template>  | 
          10 | 
                  </template>  | 
        
        
          | 10 | 
              </WidgetWrapper>  | 
          11 | 
              </WidgetWrapper>  | 
        
  
    | 
      
            Lines 12-17
          
      
      
        Link Here
      
     | 
  
        
          | 12 | 
           | 
          13 | 
           | 
        
        
          | 13 | 
          <script>  | 
          14 | 
          <script>  | 
        
        
          | 14 | 
          import { inject, ref, computed } from "vue"; | 
          15 | 
          import { inject, ref, computed } from "vue"; | 
        
            
               | 
               | 
              16 | 
              import { useRouter } from "vue-router"; | 
            
        
          | 15 | 
          import { storeToRefs } from "pinia"; | 
          17 | 
          import { storeToRefs } from "pinia"; | 
        
        
          | 16 | 
          import WidgetWrapper from "../WidgetWrapper.vue";  | 
          18 | 
          import WidgetWrapper from "../WidgetWrapper.vue";  | 
        
        
          | 17 | 
          import KohaTable from "../../KohaTable.vue";  | 
          19 | 
          import KohaTable from "../../KohaTable.vue";  | 
        
  
    | 
      
            Lines 32-37
          export default {
      
      
        Link Here
      
     | 
  
        
          | 32 | 
                  const { authorisedValues } = storeToRefs(ERMStore); | 
          34 | 
                  const { authorisedValues } = storeToRefs(ERMStore); | 
        
        
          | 33 | 
                  const av_license_statuses = authorisedValues.value.av_license_statuses;  | 
          35 | 
                  const av_license_statuses = authorisedValues.value.av_license_statuses;  | 
        
        
          | 34 | 
           | 
          36 | 
           | 
        
            
               | 
               | 
              37 | 
                      const router = useRouter();  | 
            
        
          | 35 | 
                  const table = ref();  | 
          38 | 
                  const table = ref();  | 
        
        
          | 36 | 
                  const default_settings = { | 
          39 | 
                  const default_settings = { | 
        
        
          | 37 | 
                      status: ["in_negotiation", "not_yet_active", "rejected"],  | 
          40 | 
                      status: ["in_negotiation", "not_yet_active", "rejected"],  | 
        
  
    | 
      
            Lines 117-122
          export default {
      
      
        Link Here
      
     | 
  
        
          | 117 | 
                      return params;  | 
          120 | 
                      return params;  | 
        
        
          | 118 | 
                  }  | 
          121 | 
                  }  | 
        
        
          | 119 | 
           | 
          122 | 
           | 
        
            
               | 
               | 
              123 | 
                      const goToLicense = (row, dt, event) => { | 
            
            
              | 124 | 
                          event?.preventDefault();  | 
            
            
              | 125 | 
                          router.push({ | 
            
            
              | 126 | 
                              name: "LicensesShow",  | 
            
            
              | 127 | 
                              params: { license_id: row.license_id }, | 
            
            
              | 128 | 
                          });  | 
            
            
              | 129 | 
                      };  | 
            
            
              | 130 | 
               | 
            
        
          | 120 | 
                  const tableOptions = computed(() => ({ | 
          131 | 
                  const tableOptions = computed(() => ({ | 
        
        
          | 121 | 
                      columns: [  | 
          132 | 
                      columns: [  | 
        
        
          | 122 | 
                          { | 
          133 | 
                          { | 
        
  
    | 
      
            Lines 172-177
          export default {
      
      
        Link Here
      
     | 
  
        
          | 172 | 
                      },  | 
          183 | 
                      },  | 
        
        
          | 173 | 
                      url: "/api/v1/erm/licenses",  | 
          184 | 
                      url: "/api/v1/erm/licenses",  | 
        
        
          | 174 | 
                      default_filters: settingsToQueryParams(settings.value),  | 
          185 | 
                      default_filters: settingsToQueryParams(settings.value),  | 
        
            
               | 
               | 
              186 | 
                          actions: { | 
            
            
              | 187 | 
                              0: ["show"],  | 
            
            
              | 188 | 
                          },  | 
            
        
          | 175 | 
                  }));  | 
          189 | 
                  }));  | 
        
        
          | 176 | 
           | 
          190 | 
           | 
        
        
          | 177 | 
                  const baseWidget = useBaseWidget(  | 
          191 | 
                  const baseWidget = useBaseWidget(  | 
        
  
    | 
      
            Lines 194-199
          export default {
      
      
        Link Here
      
     | 
  
        
          | 194 | 
                      ...baseWidget,  | 
          208 | 
                      ...baseWidget,  | 
        
        
          | 195 | 
                      table,  | 
          209 | 
                      table,  | 
        
        
          | 196 | 
                      tableOptions,  | 
          210 | 
                      tableOptions,  | 
        
            
               | 
               | 
              211 | 
                          goToLicense,  | 
            
        
          | 197 | 
                  };  | 
          212 | 
                  };  | 
        
        
          | 198 | 
              },  | 
          213 | 
              },  | 
        
        
          | 199 | 
          };  | 
          214 | 
          };  | 
        
            
              | 200 | 
              -   | 
               | 
               |